package com.zd.common.bean.model;

import java.util.Date;

import com.zd.common.common.annotation.Column;

/**
 * 
 * @author lishi
 * @date 2018年5月7日 上午12:11:47
 */
public class BmsRole extends BaseModel {
	private Integer id;
	private String name;
	private Integer scenicSpotId; //景区ID（如果为0 表示平台管理员）
	private int type = 0; //0-公用角色  1-平台角色   2-景区角色
	private Integer operator; //操作人（t_bms_user.id）
	private Date createTime;
	private Date updateTime;

	@Column
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public Integer getScenicSpotId() {
		return scenicSpotId;
	}

	public void setScenicSpotId(Integer scenicSpotId) {
		this.scenicSpotId = scenicSpotId;
	}

	@Column
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	@Column
	public Integer getOperator() {
		return operator;
	}

	public void setOperator(Integer operator) {
		this.operator = operator;
	}

	@Column
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "BmsRole [id=" + id + ", name=" + name + ", scenicSpotId=" + scenicSpotId + ", type=" + type
				+ ", operator=" + operator + ", createTime=" + createTime + ", updateTime=" + updateTime + "]";
	}
	
	
}
